package com.awanp3.nimbus.wms.fg.domain.vo;

import com.awanp3.nimbus.wms.fg.domain.WmsPoInfo;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.awanp3.nimbus.common.excel.annotation.ExcelDictFormat;
import com.awanp3.nimbus.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 采购订单视图对象 wms_po_info
 *
 * @author 20014170
 * @date 2025-09-11
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = WmsPoInfo.class)
public class WmsPoInfoVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * PO单号
     */
    @ExcelProperty(value = "PO单号")
    private String poNo;

    /**
     * PO行项目号
     */
    @ExcelProperty(value = "PO行项目号")
    private String poItem;

    /**
     * 物料号
     */
    @ExcelProperty(value = "物料号")
    private String materialCode;

    /**
     * 物料描述
     */
    @ExcelProperty(value = "物料描述")
    private String materialDesc;

    /**
     * 基本单位
     */
    @ExcelProperty(value = "基本单位")
    private String baseUnit;

    /**
     * 数量
     */
    @ExcelProperty(value = "数量")
    private Long qty;

    /**
     * 工厂
     */
    @ExcelProperty(value = "工厂")
    private String plantCode;

    /**
     * 库位
     */
    @ExcelProperty(value = "库位")
    private String locationCode;

    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;


}
